<script setup lang="ts">
import { useRoute } from 'vue-router'

// 相当于 this.$route
const route = useRoute()
console.log(route)
console.log('基本路径信息', route.path)
console.log('完整路径信息', route.fullPath)
</script>

<template>
  <h1>Home 主页</h1>
</template>
